class MoneyFlowEntity {
	int code;
	MoneyFlowData data;
	String message;

	MoneyFlowEntity({this.code, this.data, this.message});

	MoneyFlowEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new MoneyFlowData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class MoneyFlowData {
	List<MoneyFlowDataRe> res;
	int total;

	MoneyFlowData({this.res, this.total});

	MoneyFlowData.fromJson(Map<String, dynamic> json) {
		if (json['res'] != null) {
			res = new List<MoneyFlowDataRe>();(json['res'] as List).forEach((v) { res.add(new MoneyFlowDataRe.fromJson(v)); });
		}
		total = json['total'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.res != null) {
      data['res'] =  this.res.map((v) => v.toJson()).toList();
    }
		data['total'] = this.total;
		return data;
	}
}

class MoneyFlowDataRe {
	String income;
	String code;
	String money;
	String createTime;
	String moneyGroup;
	String memo;
	String remark;
	String moneyType;
	String id;
	String source;
	String sourceId;
	String type;

	MoneyFlowDataRe({this.income, this.code, this.money, this.createTime, this.moneyGroup, this.memo, this.remark, this.moneyType, this.id, this.source, this.sourceId, this.type});

	MoneyFlowDataRe.fromJson(Map<String, dynamic> json) {
		income = json['income'];
		code = json['code'];
		money = json['money'];
		createTime = json['create_time'];
		moneyGroup = json['money_group'];
		memo = json['memo'];
		remark = json['remark'];
		moneyType = json['money_type'];
		id = json['id'];
		source = json['source'];
		sourceId = json['source_id'];
		type = json['type'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['income'] = this.income;
		data['code'] = this.code;
		data['money'] = this.money;
		data['create_time'] = this.createTime;
		data['money_group'] = this.moneyGroup;
		data['memo'] = this.memo;
		data['remark'] = this.remark;
		data['money_type'] = this.moneyType;
		data['id'] = this.id;
		data['source'] = this.source;
		data['source_id'] = this.sourceId;
		data['type'] = this.type;
		return data;
	}
}
